cmake_minimum_required(VERSION 3.8)
project(rtk_pub)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rtk_interface REQUIRED)
find_package(serial REQUIRED)

INCLUDE_DIRECTORIES(include)

add_executable(rtk_pub_node src/rtk_pub_node.cpp)
ament_target_dependencies(rtk_pub_node rclcpp serial rtk_interface)

install(TARGETS
  rtk_pub_node
  DESTINATION lib/${PROJECT_NAME}
)
install(DIRECTORY
  launch
  DESTINATION share/${PROJECT_NAME}  
)

ament_package()
